package zzu.patterns.creational.factory;

public class CarFactory {
    public Car getCar(String brand) {
        if ("BYD".equals(brand)) {
            return new BYD();
        } else if ("DongFeng".equals(brand)) {
            return new DongFeng();
        }
        return null;
    }


}
